package cn.iocoder.an.module.business.dal.dataobject.equipmentkeepconfig;

import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.an.framework.mybatis.core.dataobject.BaseDO;

/**
 * 设备保养配置 DO
 *
 * @author zzy
 */
@TableName("business_equipment_keep_config")
@KeySequence("business_equipment_keep_config_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EquipmentKeepConfigDO extends BaseDO {

    /**
     * id
     */
    @TableId
    private Long id;
    /**
     * 配置类型1按分类2按设备
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Integer configType;
    /**
     * 根据配置类型，可能是分类ID或设备ID
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Long targetId;
    /**
     * 保养项ID
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Long itemId;


}